//
//  QHHCPUpdateProgress.h
//  QHealthForDoctor
//
//  Created by 李志良的mac mini on 2020/4/16.
//  Copyright © 2020 李 志良. All rights reserved.
//

#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN

typedef void(^QHHCPUpdateProgressBlock)(void);

@interface QHHCPUpdateProgress : NSObject

@property(nonatomic,assign) CGFloat updateProgress;

@property(nonatomic,retain) UIView * contentView;

@property(nonatomic,retain) UIView * maskView;

@property(nonatomic,retain) UIImageView * topRoketView;

@property(nonatomic,retain) UIView * bottomContentView;

@property(nonatomic,retain) UIView * progressView;

@property(nonatomic,retain) UIView * progressBorderView;

@property(nonatomic,retain) UILabel * alertLabel;
 
@property(nonatomic,retain) UIView * opraView;

@property(nonatomic,retain) UIButton * retryButton;

@property (nonatomic,copy) QHHCPUpdateProgressBlock retryBtnClickBlock;

+ (QHHCPUpdateProgress *)sharedProgress;
-(void)show;
-(void)hideProgress;
-(void)showCompleteMessage;
-(void)showErrorMessage;
-(void)showErrorWithMsg:(NSString *)errorMsg;
-(void)showNetWorkStatusMsg:(NSString *)errorMsg;
@end


@interface QHUpdateAlertAndProgress : NSObject

@property(nonatomic,retain) UIView * contentView;

@property(nonatomic,retain) UIView * progressView;

@property(nonatomic,retain) UILabel * alertLabel;

@property (nonatomic,strong) UILabel *progressLab;

@property (nonatomic,strong) UIButton *skipButton;

+ (QHUpdateAlertAndProgress *)currentProgress;

@property (nonatomic,assign) CGFloat progress;

@property (nonatomic,strong) NSString *TipStr;

@property (nonatomic,assign) BOOL isSkipBtnTaped;


-(void)HideAllSubviews:(BOOL)isHide;


@end


NS_ASSUME_NONNULL_END
